﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    enum NPCType 
    {
        任务,
        商人,
        铁匠
    }
    enum weaponItem
    {
        流星锤,
        关刀,
        枪
    }
     abstract  class NPC
    {
        private string name;
        private NPCType type;
        private int health;
        private string region;
        public string Name { get => name; set => name = value; }
        public int Health { get => health; set => health = value; }
        public string Region { get => region; set => region = value; }
       
        public abstract void Speak();
        public NPC(string name,int health,string region)
        {
            this.name = name;
            this.health = health;
            this.region = region;
        }

    }
}
